<script>

function fillTable()
{
    $('#datatable').dataTable( {
        "bDestroy": true,
        "ajax": "<?php echo base_url() ?>administrator/setting/load_log"
    } );
}
$(function(){   
    
    fillTable();
});
</script>

<div class="col-md-6 ">
    <!-- BEGIN SAMPLE FORM PORTLET-->
    <div class="portlet box green ">
        <div class="portlet-title">
            <div class="caption">
                <i class="fa fa-gift"></i> System Setting
            </div>
           <div class="tools">
                <a href="javascript:;" class="collapse" data-original-title="" title="">
                </a>
           </div>
        </div>
        <div class="portlet-body form">
            <form class="form-horizontal" role="form" action="<?php echo base_url() ?>administrator/setting/save" method="post" enctype="multipart/form-data">
                <div class="form-body">
                    <div class="form-group">
                        <label class="col-md-3 control-label">System Logo</label>
                        <div class="col-md-9">
                            <input type="file" name="logo">
							<p class="help-block">File GIF , JPG atau PNG </p>
							<img src="<?php echo base_url() ?>assets/honda_img/<?php echo $logo ?>" style="border:1px solid silver; padding:3px;">

                        </div>
                    </div>
                    <div class="form-actions">
                        <div class="row">
                            <div class="col-md-offset-3 col-md-9">
                                <button type="submit" class="btn green">Save</button>
                                <button type="button" class="btn default">Cancel</button>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!-- END SAMPLE FORM PORTLET-->
</div>

<div class="col-md-6" id="content">
    <!-- BEGIN Portlet PORTLET-->
    <div class="portlet box blue-hoki">
        <div class="portlet-title">
            <div class="caption">
                <i class="fa fa-list"></i>Access Log
            </div>
            <div class="tools">
                <a href="javascript:;" class="collapse" data-original-title="" title="">
                </a>
           </div>
        </div>
        <div class="portlet-body">
            <table class="table table-striped table-hover table-bordered" id="datatable">
                <thead>
                    <tr>
                        <th>Username</th>
                        <th>Access Time</th>
                        <th>IP</th>                    
                    </tr>
                </thead>
            </table>    
        </div>
    </div>
    <!-- END Portlet PORTLET-->
</div>
<!-- END Column -->